﻿﻿using System;
using System.Collections.Generic;
using System.Web;
namespace WebMvc.App.Models.Tips.Common
{
    public class site
    {
		public string id=null;
		public string name=null;
		public string channel_id=null;
		public string subdomain_name=null;
		public string title=null;
		public string company=null;
		public string address=null;
		public string tel=null;
		public string fax=null;
		public string email=null;
		public string copyright=null;
		public string seo_folder=null;
		public string seo_title=null;
		public string seo_keyword=null;
		public string seo_description=null;
		public string is_default=null;
        public string __name__;
        public site(string name)
        {
            this.__name__ = name;
			this.id = string.Format("{0}.id",__name__);
			this.name = string.Format("{0}.name",__name__);
			this.channel_id = string.Format("{0}.channel_id",__name__);
			this.subdomain_name = string.Format("{0}.subdomain_name",__name__);
			this.title = string.Format("{0}.title",__name__);
			this.company = string.Format("{0}.company",__name__);
			this.address = string.Format("{0}.address",__name__);
			this.tel = string.Format("{0}.tel",__name__);
			this.fax = string.Format("{0}.fax",__name__);
			this.email = string.Format("{0}.email",__name__);
			this.copyright = string.Format("{0}.copyright",__name__);
			this.seo_folder = string.Format("{0}.seo_folder",__name__);
			this.seo_title = string.Format("{0}.seo_title",__name__);
			this.seo_keyword = string.Format("{0}.seo_keyword",__name__);
			this.seo_description = string.Format("{0}.seo_description",__name__);
			this.is_default = string.Format("{0}.is_default",__name__);
        }
        public site()
        {
			this.id = string.Format("{0}.id",__name__);
			this.name = string.Format("{0}.name",__name__);
			this.channel_id = string.Format("{0}.channel_id",__name__);
			this.subdomain_name = string.Format("{0}.subdomain_name",__name__);
			this.title = string.Format("{0}.title",__name__);
			this.company = string.Format("{0}.company",__name__);
			this.address = string.Format("{0}.address",__name__);
			this.tel = string.Format("{0}.tel",__name__);
			this.fax = string.Format("{0}.fax",__name__);
			this.email = string.Format("{0}.email",__name__);
			this.copyright = string.Format("{0}.copyright",__name__);
			this.seo_folder = string.Format("{0}.seo_folder",__name__);
			this.seo_title = string.Format("{0}.seo_title",__name__);
			this.seo_keyword = string.Format("{0}.seo_keyword",__name__);
			this.seo_description = string.Format("{0}.seo_description",__name__);
			this.is_default = string.Format("{0}.is_default",__name__);
        }
        public override string ToString()
        {
            if (__name__ == null)
            {
                return "site";
            }
            else
            {
                return string.Format("site as {0}",__name__);
            }
        }
    }
}